<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>等级配置</title>
    <link rel="stylesheet" href="../../plugins/layui/css/layui.css" type="text/css">
    <link rel="stylesheet" href="/plugins/font-awesome-4.7.0/css/font-awesome.css" media="all">
    <script src="/plugins/layui/layui.js"></script>
    <script src="/common/jquery-2.1.1.js"></script>
    <script src="/common/jquery.json-2.4.js"></script>
    <script src="/js/reward/levelConfig.js"></script>

</head>
<style>
    .title-cust-ui {
        position: relative;
        height: 42px;
        line-height: 42px;
        padding: 0 10px 0px 0px;
        color: #333;
        background-color: #f2f2f2;
        font-size: 15px;
        overflow: hidden;
    }
</style>
<body class="layui-layout-bodybody">
<!-- 操作头部工具栏-->
<script type="text/html" id="addLevel">
    <div>
        <button class="layui-btn layui-btn-sm " id="add" lay-event="add"><span class="fa fa-plus addicon"></span>添加</button>
        <button class="layui-btn layui-btn-sm layui-btn-danger" id="batchDelete" lay-event="batchDelete"><span class="fa fa-plus addicon"></span>批量删除</button>
    </div>
</script>
<div style="display: none;padding: 5px" id="modifyRewardLevel">
    <form action="" method="post" class="layui-form layui-form-pane" id="dataFrm" lay-filter="dataFrm">
        <div class="layui-col-md12 layui-col-xs12">
            <div class="layui-row layui-col-space10">
                <div class="layui-col-md9 layui-col-xs7">
                    <div class="layui-form-item magt3">
                        <label class="layui-form-label">等级</label>
                        <div class="layui-input-inline">
                            <input type="hidden" name="id">
                            <input name="name" lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item magt3">
                        <label class="layui-form-label">比例</label>
                        <div class="layui-input-inline">
                            <input name="ratio" lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item magt3">
                        <label class="layui-form-label">是否按比例</label>
                        <div class="layui-input-block">
                            <input type="radio" name="is_ratio" value="0" title="是" checked="">
                            <input type="radio" name="is_ratio" value="1" title="否">
                        </div>
                    </div>
                    <div class="layui-form-item magt3">
                        <label class="layui-form-label">是否为老师</label>
                        <div class="layui-input-block">
                            <input type="radio" name="role" value="0" title="学生" checked="">
                            <input type="radio" name="role" value="1" title="老师">
                        </div>
                    </div>
                    <div class="layui-form-item magt3">
                        <label class="layui-form-label">是否显示</label>
                        <div class="layui-input-block">
                            <input type="radio" name="img_show_state" value="1" title="是" checked="">
                            <input type="radio" name="img_show_state" value="0" title="否">
                        </div>
                    </div>
                </div>
                <div class="layui-col-md3 layui-col-xs5">
                    <div class="layui-upload-list thumbBox mag0 magt3">
                        <input type="hidden" name="img_url" id="img_url" value="images/images/timg.jpg">
                        <img class="layui-upload-img thumbImg"
                             src="../images/log.jpg" width="100px" height="150px">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block" style="text-align: center;">
                    <button type="button" class="layui-btn addbtn" lay-submit="" lay-filter="doSubmit" id="doSubmit"><span
                            class="layui-icon layui-icon-add-1"></span>提交
                    </button>
                    <button type="reset" class="layui-btn layui-btn-warm"><span
                            class="layui-btn layui-btn-warm addrestbtn "><i class="fa fa-refresh restbtn"></i></span>重置
                    </button>
                    <!--<div class="layui-block">
                       <button type="button" style="margin-left: 25px" class="layui-btn addbtn" lay-submit="" lay-filter="doSubmit" id="doSubmit"><i class="fa fa-check-square restbtn"></i>提交</button>
                       <button type="reset" class="layui-btn layui-btn-warm addrestbtn "><i class="fa fa-refresh restbtn"></i>重置</button>
                   </div>-->
                </div>
            </div>
        </div>
    </form>
</div>

<div class="layui-table" style="margin-top: 10px">
    <div class="title-cust-ui"><span style="margin-left: 10px">抽奖等级配置</span></div>
    <table class="layui-table" id="tab_rewardLevel" lay-filter="f-rewardLevel" style="margin-top: -10px"></table>
</div>


<script type="text/html" id="id_rewardLevel">
    <button class="layui-btn  layui-btn-xs" lay-event="modify"><span class="fa fa-pencil-square-o addicon"></span>修改</button>
    <button class="layui-btn layui-btn-danger layui-btn-xs " lay-event="delete"><span class="fa fa-trash-o addicon"></span>删除</button>
</script>
</body>
</html>